home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / libz / ctime.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-10  |  427 b   |  31 lines

  1. #
  2.  
  3. /*LINTLIBRARY*/
  4.  
  5. #ifndef lint
  6. #ifndef NOID
  7. static char    sccsid[] = "@(#)ctime.c    3.1";
  8. #endif /* !NOID */
  9. #endif /* !lint */
  10.  
  11. #ifndef BSD_COMPAT
  12.  
  13. /*
  14. ** On non-BSD systems, this can be a separate function (as is proper).
  15. */
  16.  
  17. #include "sys/types.h"
  18. #include "time.h"
  19.  
  20. extern char *        asctime();
  21. extern struct tm *    localtime();
  22.  
  23. char *
  24. ctime(timep)
  25. time_t *    timep;
  26. {
  27.     return asctime(localtime(timep));
  28. }
  29.  
  30. #endif /* !BSD_COMPAT */
  31.